package com.hoshiibuy.goodsAllocation.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品销售分区活动
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "GoodsSaleSubareaActivity对象", description = "商品销售分区活动")
public class GoodsSaleSubareaActivity extends Model<GoodsSaleSubareaActivity> {

	private static final long serialVersionUID = 1L;

	private Long id;

	@ApiModelProperty(value = "skuid")
	private Long skuid;

	@ApiModelProperty(value = "分区")
	private Long subzoneId;

	@ApiModelProperty(value = "1-298活动2-营销活动3-会员区")
	private Boolean subarea;

	@ApiModelProperty(value = "销售库存")
	private Integer saleStock;

	@ApiModelProperty(value = "销售价格")
	private BigDecimal salePrice;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createdtime;

	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updatetime;

	@ApiModelProperty(value = "建立人")
	private String createdby;

	@ApiModelProperty(value = "修改人")
	private String updatedby;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
